package cool.tianyou.blue.bird.common.model.entity;

import cool.tianyou.blue.bird.common.model.contstant.QrcodeStatusEnum;
import cool.tianyou.blue.bird.common.model.vo.UserVO;
import cool.tianyou.blue.bird.module.auth.model.dto.LoginDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author 刘天佑
 * @date 2021-09-30
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class QrcodeLoginInfo {
    private String uuid;
    private String qrCodePath;
    private String deviceName;
    private String brand;
    private String type;
    private QrcodeStatusEnum qrcodeStatusEnum;
    private LoginDTO loginDto;

    public UserVO getUserVO(){
        final UserVO userVO = new UserVO();
        userVO.setBrand(this.getBrand());
        userVO.setDeviceUid(this.getDeviceName());
        userVO.setType(this.getType());
        return userVO;
    }

}
